package zhupf.test.designPattern.builder.improve;

/**
 *  建造者模式 之 具体建造者
 */
public class CommonHouse extends HouseBuilder {
    @Override
    public String buildBasic() {
        System.out.println("普通房子建造地基");
        house.setBasic("五米的地基");
        return "五米的地基";
    }

    @Override
    public String buildWalls() {
        System.out.println("普通房子建造墙");
        house.setWalls("50厘米的墙");
        return "50厘米的墙";
    }

    @Override
    public String roofed() {
        System.out.println("普通房子建造房顶");
        house.setRoof("一米的房顶");
        return "一米的房顶";
    }
}
